import QtQuick 1.0

Rectangle {
    id:root
    width: 360
    height: 20
    color: "black"

    Row {
        anchors.left: parent.left
        Image {
            y:2
            width: 16
            height: 16
            source: {
                if (ftpModel.state == 4)
                return "../gfx/green.png";

                if (ftpModel.state == 1)
                return "../gfx/yellow.png";

                return "../gfx/red.png"

            }

        }

        Text {
            id: text
            text: ftpModel.message
            font.family: "Courier New"
            font.pixelSize: 12
            color: "white"
        }
    }

    Row{
        anchors.right: parent.right
        spacing: 1
        Text {
            color: "white"
            text:"4"
            font.pixelSize: 12
        }
        Image {
            anchors.right: parent.right
            width: 16
            height: 16
            source: "../gfx/mini_left.png"

        }

    }
}
